package com.ruoyi.wm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wm.mapper.WmApparatusOutstorageListMapper;
import com.ruoyi.wm.domain.WmApparatusOutstorageList;
import com.ruoyi.wm.service.IWmApparatusOutstorageListService;
import com.ruoyi.common.core.text.Convert;

/**
 * 医疗器械出库记录Service业务层处理
 * 
 * @author hpf
 * @date 2021-11-25
 */
@Service
public class WmApparatusOutstorageListServiceImpl implements IWmApparatusOutstorageListService 
{
    @Autowired
    private WmApparatusOutstorageListMapper wmApparatusOutstorageListMapper;

    /**
     * 查询医疗器械出库记录
     * 
     * @param id 医疗器械出库记录ID
     * @return 医疗器械出库记录
     */
    @Override
    public WmApparatusOutstorageList selectWmApparatusOutstorageListById(Long id)
    {
        return wmApparatusOutstorageListMapper.selectWmApparatusOutstorageListById(id);
    }

    /**
     * 查询医疗器械出库记录列表
     * 
     * @param wmApparatusOutstorageList 医疗器械出库记录
     * @return 医疗器械出库记录
     */
    @Override
    public List<WmApparatusOutstorageList> selectWmApparatusOutstorageListList(WmApparatusOutstorageList wmApparatusOutstorageList)
    {
        return wmApparatusOutstorageListMapper.selectWmApparatusOutstorageListList(wmApparatusOutstorageList);
    }

    /**
     * 新增医疗器械出库记录
     * 
     * @param wmApparatusOutstorageList 医疗器械出库记录
     * @return 结果
     */
    @Override
    public int insertWmApparatusOutstorageList(WmApparatusOutstorageList wmApparatusOutstorageList)
    {
        return wmApparatusOutstorageListMapper.insertWmApparatusOutstorageList(wmApparatusOutstorageList);
    }

    /**
     * 修改医疗器械出库记录
     * 
     * @param wmApparatusOutstorageList 医疗器械出库记录
     * @return 结果
     */
    @Override
    public int updateWmApparatusOutstorageList(WmApparatusOutstorageList wmApparatusOutstorageList)
    {
        return wmApparatusOutstorageListMapper.updateWmApparatusOutstorageList(wmApparatusOutstorageList);
    }

    /**
     * 删除医疗器械出库记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmApparatusOutstorageListByIds(String ids)
    {
        return wmApparatusOutstorageListMapper.deleteWmApparatusOutstorageListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除医疗器械出库记录信息
     * 
     * @param id 医疗器械出库记录ID
     * @return 结果
     */
    @Override
    public int deleteWmApparatusOutstorageListById(Long id)
    {
        return wmApparatusOutstorageListMapper.deleteWmApparatusOutstorageListById(id);
    }
}
